# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

if (NGRAPH_INTERPRETER_ENABLE)
    add_library(interpreter_backend SHARED int_backend.cpp int_executable.cpp evaluates_map.cpp)

    if(COMMAND ie_faster_build)
        ie_faster_build(interpreter_backend
            UNITY
        )
        endif()

    if(COMMAND ie_add_vs_version_file)
        ie_add_vs_version_file(NAME interpreter_backend
                               FILEDESCRIPTION "nGraph interpreter backend library")
    endif()

    if(COMMAND ie_add_vs_version_file)
        ie_add_vs_version_file(NAME interpreter_backend
                               FILEDESCRIPTION "nGraph interpreter backend library")
    endif()

    target_compile_definitions(interpreter_backend PRIVATE INTERPRETER_BACKEND_EXPORTS)
    if(NGRAPH_LIB_VERSIONING_ENABLE)
        set_target_properties(interpreter_backend PROPERTIES
            VERSION ${NGRAPH_VERSION}
            SOVERSION ${NGRAPH_API_VERSION})
    endif()
    target_link_libraries(interpreter_backend PUBLIC ngraph_backend)

endif()
